<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateRcUserTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('rc_user', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->default('')->comment('昵称');
            $table->string('img')->default('')->comment('头像');
            $table->string('open_id')->default('')->comment('openid');
            $table->integer('sum')->default('0')->nullable()->comment('霸气值');
            $table->string('card')->nullable()->comment('卡片');
            $table->string('time')->nullable()->comment('注册时间');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('rc_user');
    }
}
